{#
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
 #
 # http://www.apache.org/licenses/LICENSE-2.0
 #
 # Unless required by applicable law or agreed to in writing, software
 # distributed under the License is distributed on an "AS IS" BASIS,
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#}
<div class="sponsors">
  <p class="sponsors__title">Supported by</p>
  <div class="sponsors__divider"></div>
  {% for sponsor in request.sponsors | sort(attribute='name') %}
    {# Short-circuit if we don't have an image for them #}
    {% if sponsor.white_logo_url %}
      {# Check if they belong in the footer #}
      {% if sponsor.infra_sponsor or sponsor.footer %}
        <a class="sponsors__sponsor"
           target="_blank"
           rel="noopener"
           href="{{ sponsor.link_url }}">
          {{ sponsor.white_logo_img|camoify|safe }}
          <span class="sponsors__name">{{ sponsor.name }}</span>
          <span class="sponsors__service">
            {# If they're an infra sponsor, we should have a service for them,
          otherwise they're a PSF sponsor #}
            {% if sponsor.infra_sponsor %}
              {{ sponsor.service }}
            {% elif sponsor.footer %}
              PSF Sponsor
            {% endif %}
          </span>
        </a>
      {% endif %}
    {% endif %}
  {% endfor %}
</div>
